<template>
 
  <el-main>
    <div>
      <el-form ref="form" :model="form" label-width="100px">
        <el-form-item label="请输入航班号:">
          <el-row>
            <el-col :span="50">
              <el-input style="width: 200%" v-model="form.dfltFlno"></el-input>
            </el-col>
          </el-row>
          <el-col :span="10">
            <el-button class="btn1" type="primary" @click="onSubmit"
              >查询</el-button
            >
          </el-col>
        </el-form-item>
        <div class="link-top"></div>
        <el-form-item label="起始站">
          <el-input style="width: 400px" v-model="form.apcd"></el-input>
        </el-form-item>

        <el-form-item label="日期">
          <el-col :span="13">
            <el-date-picker
              type="date"
              placeholder="选择日期"
              v-model="form.dtime"
              style="width: 200px"
              @change="updateDateTime"
            ></el-date-picker>
          </el-col>
        </el-form-item>

        <el-form-item label="起飞/降落时间">
          <el-col :span="13">
            <el-time-picker
              placeholder="选择起飞时间"
              v-model="form.startDate"
              style="width: 200px"
              :picker-options="{ start: '00:00', step: '00:15', end: '23:59' }"
    
            ></el-time-picker>
            <el-time-picker
              placeholder="选择降落时间"
              v-model="form.endDate"
              style="width: 200px"
              :picker-options="{ start: '00:00', step: '00:15', end: '23:59' }"
  
            ></el-time-picker>
          </el-col>
        </el-form-item>

        <el-form-item>
          <el-button type="primary" @click="onSubmit">搜索</el-button>
        </el-form-item>
      </el-form>
    </div>
    <!-- 数据表 -->
    <el-table
      ref="singleTable"
      :data="tableData"
      highlight-current-row
      style="width: 100%"
    >
      <el-table-column property="dfltFlno" label="航班号" width="100">
      </el-table-column>
      <el-table-column property="dfltAwcd" label="航空公司" width="200">
      </el-table-column>
      <el-table-column property="apcd" label="航线路由" width="150">
      </el-table-column>
      <el-table-column property="dtime" label="日期" width="200">
      </el-table-column>
      <el-table-column property="fptt" label="计划起飞时间" width="220">
      </el-table-column>
      <el-table-column property="fplt" label="预计降落时间" width="220">
      </el-table-column>
      <el-table-column label="操作" width="150">
        <template #default="scope">
          <el-button type="success" size="small" @click="handleEdit(scope.$index, scope.row)"
            >航班变更</el-button
          >
        </template>
      </el-table-column>
    </el-table>
    <!-- 分页组件 -->
    <el-pagination
      background
      layout="prev, pager, next"
      :total="count"
      :current-page="page"
      :pageCount="pageCount"
      @current-change="changePage"
    >
    </el-pagination>
  </el-main>
    </template>
    
    <script>
    export default {
      name: "subCheck",
      data() {
    return {
      dialogVisible: false,
      dialogTitle: "修改航班",
      selectLabel: 0,
      tableDataType: 1,
      called:false,
      formLabelWidth: "120px", //表单文本宽度
      tableData: [{}], //图书分页数据
      count: 0, //记录总数
      page: 1, //当前页码
      pageCount: "", //总页数
      form: {
        dfltAwcd: "",
        dfltFlno: "",
        apcd: "",
        startDate: "",
        endDate: "",
        dtime: "2017-06-01T00:00:00.000Z",
      }
    }
    
    }
    </script>
    
    <style scoped>
    
    </style>